package com.example.pceb.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Course {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String title;
    private String description;
    private String instructor;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Integer capacity;
    private String coverImage;
    private String materialUrl;
    private String testQuestion;
    private Long enterpriseId; // 新增字段：企业ID
}
